<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>{{ the_title | safe }}</title>
    <!-- plugins:css -->
    <link rel="stylesheet" href="static/css/materialdesignicons.min.css">
    <link rel="stylesheet" href="static/css/vendor.bundle.base.css">
    <!-- endinject -->
    <!-- plugin css for this page -->
    <link rel="stylesheet" href="static/css/dataTables.bootstrap4.css">
    <!-- End plugin css for this page -->
    <!-- inject:css -->
    <link rel="stylesheet" href="static/css/style.css">
    {{ js_resources|safe }}
    {{ css_resources|safe }}
</head>
<body>
<div class="container-scroller">
    <!-- partial:partials/_navbar.html -->
    <nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
        <div class="navbar-brand-wrapper d-flex justify-content-center">
            <div class="navbar-brand-inner-wrapper d-flex justify-content-between align-items-center w-100">
                <a class="navbar-brand brand-logo" href="{{ url_for('index') }}"><h5 style="color: #3399FF">wing's
                    project</h5></a>
                <button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
                    <img src="/static/image/sidebar1.svg" height="20" width="20"/>
                </button>
            </div>
        </div>
        <!-- navbar title -->
        <div class="navbar-menu-wrapper d-flex align-items-center justify-content-end">
            <ul style="margin-right: 450px;margin-top: 20px;justify-content: center">
                <h4>我国教育资源数据可视化</h4>
                <p style="text-align: center">数据来源：国家统计局</p>
            </ul>
            <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button"
                    data-toggle="offcanvas">
                <span class="mdi mdi-menu"></span>
            </button>
        </div>
    </nav>
    <!-- partial -->
    <div class="container-fluid page-body-wrapper">
        <!-- 导航栏 -->
        <nav class="sidebar sidebar-offcanvas" id="sidebar">
            <ul class="nav">
                <li class="nav-item">
                    <a class="nav-link" href="{{ url_for('index') }}">
                        <i><img src="/static/image/sidebar2.svg" height="20" width="20"></i>
                        <span class="menu-title" style="margin-left: 10px;margin-top: 5px">首页</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="collapse" href="#ui-basic" aria-expanded="false"
                       aria-controls="ui-basic">
                        <i><img src="/static/image/sidebar3.svg" height="20" width="20"></i>
                        <span class="menu-title" style="margin-left: 10px;margin-top: 5px">高校分布情况</span>
                        <i><img src="/static/image/sidebar3-2.svg" height="20" width="20"></i>
                    </a>
                    <div class="collapse" id="ui-basic">
                        <ul class="nav flex-column sub-menu">
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('map_1') }}">全国高校分布图</a></li>
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('map_2') }}">985高校分布图</a></li>
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('piec') }}">世界前800名高校中国占比</a></li>
                        </ul>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="collapse" href="#b" aria-expanded="false"
                       aria-controls="b">
                        <i><img src="/static/image/sidebar4.svg" height="20" width="20"></i>
                        <span class="menu-title" style="margin-left: 10px;margin-top: 5px">学校数量情况</span>
                        <i><img src="/static/image/sidebar3-2.svg" height="20" width="20"></i>
                    </a>
                    <div class="collapse" id="b">
                        <ul class="nav flex-column sub-menu">
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('unicount') }}">普通高校</a>
                            </li>
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('highcount') }}">普通高中</a></li>
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('middlecount') }}">普通初中</a></li>
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('otherscount') }}">小学、学前教育及特殊教育</a></li>
                        </ul>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="collapse" href="#c" aria-expanded="false"
                       aria-controls="c">
                        <i><img src="/static/image/sidebar5.svg" height="20" width="20"></i>
                        <span class="menu-title" style="margin-left: 10px;margin-top: 5px">学生数量情况</span>
                        <i><img src="/static/image/sidebar3-2.svg" height="20" width="20"></i>
                    </a>
                    <div class="collapse" id="c">
                        <ul class="nav flex-column sub-menu">
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('recruit_students') }}">招生情况</a>
                            </li>
                            <li class="nav-item"><a class="nav-link" href="{{ url_for('inschool_students') }}">在校生情况</a>
                            </li>
                        </ul>
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{{ url_for('teachercount') }}">
                        <i><img src="/static/image/sidebar6.svg" height="20" width="20"></i>
                        <span class="menu-title" style="margin-left: 10px;margin-top: 5px">教师数量情况</span>
                    </a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="{{ url_for('tea_stu') }}">
                        <i><img src="/static/image/sidebar7.svg" height="20" width="20"></i>
                        <span class="menu-title" style="margin-left: 10px;margin-top: 5px">师生比例情况</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{{ url_for('edu_fund') }}">
                        <i><img src="/static/image/sidebar8.svg" height="20" width="20"></i>
                        <span class="menu-title" style="margin-left: 10px;margin-top: 5px">教育经费情况</span>
                    </a>
                </li>
            </ul>
        </nav>
        <!-- 内容页 -->
        <div class="main-panel">
            <div class="content-wrapper">
                <div class="row" style="width: 2000px">
                    <div class="col-md-7 grid-margin stretch-card">
                        <div class="card">
                            <div class="card-body">
                                {{plot_script|safe}}
                                {{plot_div|safe}}
                            </div>
                        </div>
                    </div>
                    <div>
                        <div class="card" style="width: 1150px;height: 500px;margin-left: 10px">
                            <div class="card-body">
                                <h1>数据分析</h1>
                                <p class="text-muted" style="margin-top: 20px">师生比例展现的是一个教师平均要教几个学生的数据，国家规定的师生比最低标准为1:14。初中与高中的师生比是符合国家标准的。但是高校与小学的师生比则高的吓人，小学的高达16，而高效的更是达到了1:18.老师与学生的数量极度不匹配。这也进一步印证了我国教师资源短缺的状况。</p>
                            </div>
                            <canvas id="total-sales-chart"></canvas>
                        </div>
                    </div>
                </div>
            </div>
            <!-- content-wrapper ends -->
            <!-- partial:partials/_footer.html -->
            <footer class="footer">
                <div class="d-sm-flex justify-content-center justify-content-sm-between">
                    <span class="text-muted d-block text-center text-sm-left d-sm-inline-block">Copyright © bootstrapdash.com 2020</span>
                    <span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center"> Free <a
                            href="https://www.bootstrapdash.com/" target="_blank">Bootstrap dashboard template</a> from Bootstrapdash.com</span>
                </div>
            </footer>
            <!-- partial -->
        </div>
        <!-- main-panel ends -->
    </div>
    <!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->

<!-- plugins:js -->
<script src="static/js/vendor.bundle.base.js"></script>
<!-- endinject -->
<!-- Plugin js for this page-->
<script src="static/js/Chart.min.js"></script>
<script src="static/js/jquery.dataTables.js"></script>
<script src="static/js/dataTables.bootstrap4.js"></script>
<!-- End plugin js for this page-->
<!-- inject:js -->
<script src="static/js/off-canvas.js"></script>
<script src="static/js/hoverable-collapse.js"></script>
<script src="static/js/template.js"></script>
<!-- endinject -->
<!-- Custom js for this page-->
<script src="static/js/dashboard.js"></script>
<script src="static/js/data-table.js"></script>
<script src="static/js/jquery.dataTables.js"></script>
<script src="static/js/dataTables.bootstrap4.js"></script>
<!-- End custom js for this page-->
<script src="static/js/jquery.cookie.js" type="text/javascript"></script>
</body>

</html>